FROM registry:5000/spark-2.4.8:v1

# ADD https://archive.apache.org/dist/hive/hive-1.2.1/apache-hive-1.2.1-bin.tar.gz /
ADD apache-hive-1.2.1-bin.tar.gz /
ADD hive /apache-hive-1.2.1-bin/bin/
ADD mysql-connector-java-*.jar /apache-hive-1.2.1-bin/lib/
ADD hive.sh /etc/profile.d/
ADD entrypoint.sh wait-tcp.sh /

ENV HIVE_HOME=/apache-hive-1.2.1-bin
ENV HIVE_CONF_DIR=/apache-hive-1.2.1-bin/conf
ENV PATH=$PATH:$HIVE_HOME/bin

